import request from '@/utils/request'

export function pieData() {
  return request({
    url: '/index/papers/illness/pie/count',
    method: 'get'
  })
}

export function barData(name) {
  return request({
    url: '/index/papers/illness/bar/count',
    method: 'get',
    params: {name}
  })
}

export function userData() {
  return request({
    url: '/index/user/count',
    method: 'get'
  })
}
